<template>
  <div class="footer-box">
    <el-row>
      <el-col :span="6">
        <router-link to="/" :class="{active:$route.path=='/'}">
          <i class="el-icon-s-home"></i>
          <span>首页</span>
        </router-link>
      </el-col>
      <el-col :span="6">
        <router-link
          :to="{
          path:'/classify',
          query:{
            title:'京东超市'
          }
        }"
          :class="{active:$route.path=='/classify'}"
        >
          <i class="el-icon-menu"></i>
          <span>分类</span>
        </router-link>
      </el-col>
      <el-col :span="6">
        <router-link to="/shopcar" :class="{active:$route.path=='/shopcar'}">
          <i class="el-icon-shopping-cart-2"></i>
          <span>购物车</span>
        </router-link>
      </el-col>
      <el-col :span="6">
        <router-link to="/login" :class="{active:$route.path=='/login'}">
          <i class="el-icon-user-solid"></i>
          <span>未登录</span>
          <div class="radius"></div>
        </router-link>
      </el-col>
    </el-row>
  </div>
</template>

<script>
export default {
  name: "FooterBox",
  data() {
    return {};
  },
  methods: {}
};
</script>

<style lang="less" scoped>
.footer-box {
  position: fixed;
  bottom: 0;
  width: 100%;
  height: 13.3333vw !important;
  border-top: 0.5333vw solid #f1f1f1;
  background-color: #fff;
}
.el-row {
  height: 100%;
}
.el-col {
  height: 100%;
}
a {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-around;
  height: 100%;
  color: #8b8b8b;
}
i {
  font-size: 6.4vw;
}
span {
  font-size: 3.2vw;
}
.radius {
  position: absolute;
  bottom: 10.6666vw;
  right: 8vw;
  width: 1.6vw;
  height: 1.6vw;
  background-color: red;
  border-radius: 50%;
}
.active {
  color: red;
}
</style>